"""
@Project:作业
@File:aaaa.py
@Author:马可
@Date:下午 08:43
"""
# import string
# import random
# def coupon_creator(digit):
#     coupon=''
#     for word in range(digit):
#         coupon += random.choice(string.ascii_uppercase + string.digits)
#     return coupon
#
# def two_hundred_coupons():
#     data=''
#     count=1
#     for count in range(200):
#         digit=12
#         count+=1
#         data+='coupon no.'+str(count)+'  '+coupon_creator(digit)+'\n'
#
#     return data
#
#
# coupondata=open('bbb.txt','w')
# coupondata.write(two_hundred_coupons())
# coupondata.close()


import random
import string

def aaaa(digit):

    aa = random.randint(1,10)
    bb = string.ascii_uppercase
    a = str(aa)
    b = str(bb)
    c = a+b
    print(c)


def two_hundred_coupons():
    data=''
    count=1
    for count in range(200):
        digit=12
        count+=1
        data+='coupon no.'+str(count)+'  '+aaaa(digit)+'\n'

    return data